﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DetailsView 的用法(与GridView 一起使用) .aspx.cs" Inherits="数据访问控件_DetailsView_的用法_与GridView_一起使用__" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:AccessDataSource ID="AccessDataSource2" runat="server" 
            ConflictDetection="CompareAllValues" DataFile="~/App_Data/db1.mdb" 
            DeleteCommand="DELETE FROM [News] WHERE [ID] = ? AND [NewsID] = ? AND [PopId] = ? AND [ClassID] = ? AND [SpecialEName] = ? AND [NewsTitle] = ? AND [CurtTitle] = ? AND [NewsNaviContent] = ? AND [isShowReview] = ? AND [TitleColor] = ? AND [titleBorder] = ? AND [TitleItalic] = ? AND [IsURL] = ? AND [URLAddress] = ? AND [Content] = ? AND [isPicNews] = ? AND [NewsPicFile] = ? AND [NewsSmallPicFile] = ? AND [PicborderCss] = ? AND [Templet] = ? AND [isPop] = ? AND [Source] = ? AND [Editor] = ? AND [Keywords] = ? AND [Author] = ? AND [Hits] = ? AND [SaveNewsPath] = ? AND [FileName] = ? AND [FileExtName] = ? AND [NewsProperty] = ? AND [TodayNewsPic] = ? AND [isLock] = ? AND [isRecyle] = ? AND [addtime] = ? AND [isdraft] = ? AND [IsAdPic] = ? AND [AdPicWH] = ? AND [AdPicLink] = ? AND [AdPicAdress] = ?" 
            InsertCommand="INSERT INTO [News] ([ID], [NewsID], [PopId], [ClassID], [SpecialEName], [NewsTitle], [CurtTitle], [NewsNaviContent], [isShowReview], [TitleColor], [titleBorder], [TitleItalic], [IsURL], [URLAddress], [Content], [isPicNews], [NewsPicFile], [NewsSmallPicFile], [PicborderCss], [Templet], [isPop], [Source], [Editor], [Keywords], [Author], [Hits], [SaveNewsPath], [FileName], [FileExtName], [NewsProperty], [TodayNewsPic], [isLock], [isRecyle], [addtime], [isdraft], [IsAdPic], [AdPicWH], [AdPicLink], [AdPicAdress]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" 
            OldValuesParameterFormatString="original_{0}" 
            SelectCommand="SELECT * FROM [News]" 
            UpdateCommand="UPDATE [News] SET [NewsID] = ?, [PopId] = ?, [ClassID] = ?, [SpecialEName] = ?, [NewsTitle] = ?, [CurtTitle] = ?, [NewsNaviContent] = ?, [isShowReview] = ?, [TitleColor] = ?, [titleBorder] = ?, [TitleItalic] = ?, [IsURL] = ?, [URLAddress] = ?, [Content] = ?, [isPicNews] = ?, [NewsPicFile] = ?, [NewsSmallPicFile] = ?, [PicborderCss] = ?, [Templet] = ?, [isPop] = ?, [Source] = ?, [Editor] = ?, [Keywords] = ?, [Author] = ?, [Hits] = ?, [SaveNewsPath] = ?, [FileName] = ?, [FileExtName] = ?, [NewsProperty] = ?, [TodayNewsPic] = ?, [isLock] = ?, [isRecyle] = ?, [addtime] = ?, [isdraft] = ?, [IsAdPic] = ?, [AdPicWH] = ?, [AdPicLink] = ?, [AdPicAdress] = ? WHERE [ID] = ? AND [NewsID] = ? AND [PopId] = ? AND [ClassID] = ? AND [SpecialEName] = ? AND [NewsTitle] = ? AND [CurtTitle] = ? AND [NewsNaviContent] = ? AND [isShowReview] = ? AND [TitleColor] = ? AND [titleBorder] = ? AND [TitleItalic] = ? AND [IsURL] = ? AND [URLAddress] = ? AND [Content] = ? AND [isPicNews] = ? AND [NewsPicFile] = ? AND [NewsSmallPicFile] = ? AND [PicborderCss] = ? AND [Templet] = ? AND [isPop] = ? AND [Source] = ? AND [Editor] = ? AND [Keywords] = ? AND [Author] = ? AND [Hits] = ? AND [SaveNewsPath] = ? AND [FileName] = ? AND [FileExtName] = ? AND [NewsProperty] = ? AND [TodayNewsPic] = ? AND [isLock] = ? AND [isRecyle] = ? AND [addtime] = ? AND [isdraft] = ? AND [IsAdPic] = ? AND [AdPicWH] = ? AND [AdPicLink] = ? AND [AdPicAdress] = ?">
            <DeleteParameters>
                <asp:parameter Name="original_ID" Type="Int32" />
                <asp:parameter Name="original_NewsID" Type="String" />
                <asp:parameter Name="original_PopId" Type="Int32" />
                <asp:parameter Name="original_ClassID" Type="String" />
                <asp:parameter Name="original_SpecialEName" Type="String" />
                <asp:parameter Name="original_NewsTitle" Type="String" />
                <asp:parameter Name="original_CurtTitle" Type="String" />
                <asp:parameter Name="original_NewsNaviContent" Type="String" />
                <asp:parameter Name="original_isShowReview" Type="Byte" />
                <asp:parameter Name="original_TitleColor" Type="String" />
                <asp:parameter Name="original_titleBorder" Type="Byte" />
                <asp:parameter Name="original_TitleItalic" Type="Byte" />
                <asp:parameter Name="original_IsURL" Type="Byte" />
                <asp:parameter Name="original_URLAddress" Type="String" />
                <asp:parameter Name="original_Content" Type="String" />
                <asp:parameter Name="original_isPicNews" Type="Byte" />
                <asp:parameter Name="original_NewsPicFile" Type="String" />
                <asp:parameter Name="original_NewsSmallPicFile" Type="String" />
                <asp:parameter Name="original_PicborderCss" Type="Byte" />
                <asp:parameter Name="original_Templet" Type="String" />
                <asp:parameter Name="original_isPop" Type="Int32" />
                <asp:parameter Name="original_Source" Type="String" />
                <asp:parameter Name="original_Editor" Type="String" />
                <asp:parameter Name="original_Keywords" Type="String" />
                <asp:parameter Name="original_Author" Type="String" />
                <asp:parameter Name="original_Hits" Type="Int32" />
                <asp:parameter Name="original_SaveNewsPath" Type="String" />
                <asp:parameter Name="original_FileName" Type="String" />
                <asp:parameter Name="original_FileExtName" Type="String" />
                <asp:parameter Name="original_NewsProperty" Type="String" />
                <asp:parameter Name="original_TodayNewsPic" Type="Byte" />
                <asp:parameter Name="original_isLock" Type="Byte" />
                <asp:parameter Name="original_isRecyle" Type="Byte" />
                <asp:parameter Name="original_addtime" Type="DateTime" />
                <asp:parameter Name="original_isdraft" Type="Byte" />
                <asp:parameter Name="original_IsAdPic" Type="String" />
                <asp:parameter Name="original_AdPicWH" Type="String" />
                <asp:parameter Name="original_AdPicLink" Type="String" />
                <asp:parameter Name="original_AdPicAdress" Type="String" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:parameter Name="NewsID" Type="String" />
                <asp:parameter Name="PopId" Type="Int32" />
                <asp:parameter Name="ClassID" Type="String" />
                <asp:parameter Name="SpecialEName" Type="String" />
                <asp:parameter Name="NewsTitle" Type="String" />
                <asp:parameter Name="CurtTitle" Type="String" />
                <asp:parameter Name="NewsNaviContent" Type="String" />
                <asp:parameter Name="isShowReview" Type="Byte" />
                <asp:parameter Name="TitleColor" Type="String" />
                <asp:parameter Name="titleBorder" Type="Byte" />
                <asp:parameter Name="TitleItalic" Type="Byte" />
                <asp:parameter Name="IsURL" Type="Byte" />
                <asp:parameter Name="URLAddress" Type="String" />
                <asp:parameter Name="Content" Type="String" />
                <asp:parameter Name="isPicNews" Type="Byte" />
                <asp:parameter Name="NewsPicFile" Type="String" />
                <asp:parameter Name="NewsSmallPicFile" Type="String" />
                <asp:parameter Name="PicborderCss" Type="Byte" />
                <asp:parameter Name="Templet" Type="String" />
                <asp:parameter Name="isPop" Type="Int32" />
                <asp:parameter Name="Source" Type="String" />
                <asp:parameter Name="Editor" Type="String" />
                <asp:parameter Name="Keywords" Type="String" />
                <asp:parameter Name="Author" Type="String" />
                <asp:parameter Name="Hits" Type="Int32" />
                <asp:parameter Name="SaveNewsPath" Type="String" />
                <asp:parameter Name="FileName" Type="String" />
                <asp:parameter Name="FileExtName" Type="String" />
                <asp:parameter Name="NewsProperty" Type="String" />
                <asp:parameter Name="TodayNewsPic" Type="Byte" />
                <asp:parameter Name="isLock" Type="Byte" />
                <asp:parameter Name="isRecyle" Type="Byte" />
                <asp:parameter Name="addtime" Type="DateTime" />
                <asp:parameter Name="isdraft" Type="Byte" />
                <asp:parameter Name="IsAdPic" Type="String" />
                <asp:parameter Name="AdPicWH" Type="String" />
                <asp:parameter Name="AdPicLink" Type="String" />
                <asp:parameter Name="AdPicAdress" Type="String" />
                <asp:parameter Name="original_ID" Type="Int32" />
                <asp:parameter Name="original_NewsID" Type="String" />
                <asp:parameter Name="original_PopId" Type="Int32" />
                <asp:parameter Name="original_ClassID" Type="String" />
                <asp:parameter Name="original_SpecialEName" Type="String" />
                <asp:parameter Name="original_NewsTitle" Type="String" />
                <asp:parameter Name="original_CurtTitle" Type="String" />
                <asp:parameter Name="original_NewsNaviContent" Type="String" />
                <asp:parameter Name="original_isShowReview" Type="Byte" />
                <asp:parameter Name="original_TitleColor" Type="String" />
                <asp:parameter Name="original_titleBorder" Type="Byte" />
                <asp:parameter Name="original_TitleItalic" Type="Byte" />
                <asp:parameter Name="original_IsURL" Type="Byte" />
                <asp:parameter Name="original_URLAddress" Type="String" />
                <asp:parameter Name="original_Content" Type="String" />
                <asp:parameter Name="original_isPicNews" Type="Byte" />
                <asp:parameter Name="original_NewsPicFile" Type="String" />
                <asp:parameter Name="original_NewsSmallPicFile" Type="String" />
                <asp:parameter Name="original_PicborderCss" Type="Byte" />
                <asp:parameter Name="original_Templet" Type="String" />
                <asp:parameter Name="original_isPop" Type="Int32" />
                <asp:parameter Name="original_Source" Type="String" />
                <asp:parameter Name="original_Editor" Type="String" />
                <asp:parameter Name="original_Keywords" Type="String" />
                <asp:parameter Name="original_Author" Type="String" />
                <asp:parameter Name="original_Hits" Type="Int32" />
                <asp:parameter Name="original_SaveNewsPath" Type="String" />
                <asp:parameter Name="original_FileName" Type="String" />
                <asp:parameter Name="original_FileExtName" Type="String" />
                <asp:parameter Name="original_NewsProperty" Type="String" />
                <asp:parameter Name="original_TodayNewsPic" Type="Byte" />
                <asp:parameter Name="original_isLock" Type="Byte" />
                <asp:parameter Name="original_isRecyle" Type="Byte" />
                <asp:parameter Name="original_addtime" Type="DateTime" />
                <asp:parameter Name="original_isdraft" Type="Byte" />
                <asp:parameter Name="original_IsAdPic" Type="String" />
                <asp:parameter Name="original_AdPicWH" Type="String" />
                <asp:parameter Name="original_AdPicLink" Type="String" />
                <asp:parameter Name="original_AdPicAdress" Type="String" />
            </UpdateParameters>
            <InsertParameters>
                <asp:parameter Name="ID" Type="Int32" />
                <asp:parameter Name="NewsID" Type="String" />
                <asp:parameter Name="PopId" Type="Int32" />
                <asp:parameter Name="ClassID" Type="String" />
                <asp:parameter Name="SpecialEName" Type="String" />
                <asp:parameter Name="NewsTitle" Type="String" />
                <asp:parameter Name="CurtTitle" Type="String" />
                <asp:parameter Name="NewsNaviContent" Type="String" />
                <asp:parameter Name="isShowReview" Type="Byte" />
                <asp:parameter Name="TitleColor" Type="String" />
                <asp:parameter Name="titleBorder" Type="Byte" />
                <asp:parameter Name="TitleItalic" Type="Byte" />
                <asp:parameter Name="IsURL" Type="Byte" />
                <asp:parameter Name="URLAddress" Type="String" />
                <asp:parameter Name="Content" Type="String" />
                <asp:parameter Name="isPicNews" Type="Byte" />
                <asp:parameter Name="NewsPicFile" Type="String" />
                <asp:parameter Name="NewsSmallPicFile" Type="String" />
                <asp:parameter Name="PicborderCss" Type="Byte" />
                <asp:parameter Name="Templet" Type="String" />
                <asp:parameter Name="isPop" Type="Int32" />
                <asp:parameter Name="Source" Type="String" />
                <asp:parameter Name="Editor" Type="String" />
                <asp:parameter Name="Keywords" Type="String" />
                <asp:parameter Name="Author" Type="String" />
                <asp:parameter Name="Hits" Type="Int32" />
                <asp:parameter Name="SaveNewsPath" Type="String" />
                <asp:parameter Name="FileName" Type="String" />
                <asp:parameter Name="FileExtName" Type="String" />
                <asp:parameter Name="NewsProperty" Type="String" />
                <asp:parameter Name="TodayNewsPic" Type="Byte" />
                <asp:parameter Name="isLock" Type="Byte" />
                <asp:parameter Name="isRecyle" Type="Byte" />
                <asp:parameter Name="addtime" Type="DateTime" />
                <asp:parameter Name="isdraft" Type="Byte" />
                <asp:parameter Name="IsAdPic" Type="String" />
                <asp:parameter Name="AdPicWH" Type="String" />
                <asp:parameter Name="AdPicLink" Type="String" />
                <asp:parameter Name="AdPicAdress" Type="String" />
            </InsertParameters>
        </asp:AccessDataSource>
    
        <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" 
            AutoGenerateRows="False" BackColor="White" BorderColor="#DEDFDE" 
            BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="ID" 
            DataSourceID="AccessDataSource2" ForeColor="Black" GridLines="Vertical" 
            Height="50px" Width="578px">
            <footerstyle backcolor="#CCCC99" />
            <rowstyle backcolor="#F7F7DE" />
            <pagerstyle backcolor="#F7F7DE" forecolor="Black" horizontalalign="Right" />
            <Fields>
                <asp:boundfield DataField="ID" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="ID"></asp:boundfield>
                <asp:boundfield DataField="NewsID" HeaderText="NewsID" SortExpression="NewsID">
                </asp:boundfield>
                <asp:boundfield DataField="PopId" HeaderText="PopId" SortExpression="PopId">
                </asp:boundfield>
                <asp:boundfield DataField="ClassID" HeaderText="ClassID" 
                    SortExpression="ClassID"></asp:boundfield>
                <asp:boundfield DataField="SpecialEName" HeaderText="SpecialEName" 
                    SortExpression="SpecialEName"></asp:boundfield>
                <asp:boundfield DataField="NewsTitle" HeaderText="NewsTitle" 
                    SortExpression="NewsTitle"></asp:boundfield>
                <asp:boundfield DataField="CurtTitle" HeaderText="CurtTitle" 
                    SortExpression="CurtTitle"></asp:boundfield>
                <asp:boundfield DataField="NewsNaviContent" HeaderText="NewsNaviContent" 
                    SortExpression="NewsNaviContent"></asp:boundfield>
                <asp:boundfield DataField="isShowReview" HeaderText="isShowReview" 
                    SortExpression="isShowReview"></asp:boundfield>
                <asp:boundfield DataField="TitleColor" HeaderText="TitleColor" 
                    SortExpression="TitleColor"></asp:boundfield>
                <asp:boundfield DataField="titleBorder" HeaderText="titleBorder" 
                    SortExpression="titleBorder"></asp:boundfield>
                <asp:boundfield DataField="TitleItalic" HeaderText="TitleItalic" 
                    SortExpression="TitleItalic"></asp:boundfield>
                <asp:boundfield DataField="IsURL" HeaderText="IsURL" SortExpression="IsURL">
                </asp:boundfield>
                <asp:boundfield DataField="URLAddress" HeaderText="URLAddress" 
                    SortExpression="URLAddress"></asp:boundfield>
                <asp:boundfield DataField="Content" HeaderText="Content" 
                    SortExpression="Content"></asp:boundfield>
                <asp:boundfield DataField="isPicNews" HeaderText="isPicNews" 
                    SortExpression="isPicNews"></asp:boundfield>
                <asp:boundfield DataField="NewsPicFile" HeaderText="NewsPicFile" 
                    SortExpression="NewsPicFile"></asp:boundfield>
                <asp:boundfield DataField="NewsSmallPicFile" HeaderText="NewsSmallPicFile" 
                    SortExpression="NewsSmallPicFile"></asp:boundfield>
                <asp:boundfield DataField="PicborderCss" HeaderText="PicborderCss" 
                    SortExpression="PicborderCss"></asp:boundfield>
                <asp:boundfield DataField="Templet" HeaderText="Templet" 
                    SortExpression="Templet"></asp:boundfield>
                <asp:boundfield DataField="isPop" HeaderText="isPop" SortExpression="isPop">
                </asp:boundfield>
                <asp:boundfield DataField="Source" HeaderText="Source" SortExpression="Source">
                </asp:boundfield>
                <asp:boundfield DataField="Editor" HeaderText="Editor" SortExpression="Editor">
                </asp:boundfield>
                <asp:boundfield DataField="Keywords" HeaderText="Keywords" 
                    SortExpression="Keywords"></asp:boundfield>
                <asp:boundfield DataField="Author" HeaderText="Author" SortExpression="Author">
                </asp:boundfield>
                <asp:boundfield DataField="Hits" HeaderText="Hits" SortExpression="Hits">
                </asp:boundfield>
                <asp:boundfield DataField="SaveNewsPath" HeaderText="SaveNewsPath" 
                    SortExpression="SaveNewsPath"></asp:boundfield>
                <asp:boundfield DataField="FileName" HeaderText="FileName" 
                    SortExpression="FileName"></asp:boundfield>
                <asp:boundfield DataField="FileExtName" HeaderText="FileExtName" 
                    SortExpression="FileExtName"></asp:boundfield>
                <asp:boundfield DataField="NewsProperty" HeaderText="NewsProperty" 
                    SortExpression="NewsProperty"></asp:boundfield>
                <asp:boundfield DataField="TodayNewsPic" HeaderText="TodayNewsPic" 
                    SortExpression="TodayNewsPic"></asp:boundfield>
                <asp:boundfield DataField="isLock" HeaderText="isLock" SortExpression="isLock">
                </asp:boundfield>
                <asp:boundfield DataField="isRecyle" HeaderText="isRecyle" 
                    SortExpression="isRecyle"></asp:boundfield>
                <asp:boundfield DataField="addtime" HeaderText="addtime" 
                    SortExpression="addtime"></asp:boundfield>
                <asp:boundfield DataField="isdraft" HeaderText="isdraft" 
                    SortExpression="isdraft"></asp:boundfield>
                <asp:boundfield DataField="IsAdPic" HeaderText="IsAdPic" 
                    SortExpression="IsAdPic"></asp:boundfield>
                <asp:boundfield DataField="AdPicWH" HeaderText="AdPicWH" 
                    SortExpression="AdPicWH"></asp:boundfield>
                <asp:boundfield DataField="AdPicLink" HeaderText="AdPicLink" 
                    SortExpression="AdPicLink"></asp:boundfield>
                <asp:boundfield DataField="AdPicAdress" HeaderText="AdPicAdress" 
                    SortExpression="AdPicAdress"></asp:boundfield>
            </Fields>
            <headerstyle backcolor="#6B696B" font-bold="True" forecolor="White" />
            <editrowstyle backcolor="#CE5D5A" font-bold="True" forecolor="White" />
            <alternatingrowstyle backcolor="White" />
        </asp:DetailsView>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
            ConflictDetection="CompareAllValues" DataFile="~/App_Data/db1.mdb" 
            DeleteCommand="DELETE FROM [News] WHERE [ID] = ? AND [NewsID] = ? AND [PopId] = ? AND [ClassID] = ? AND [SpecialEName] = ? AND [NewsTitle] = ? AND [CurtTitle] = ? AND [NewsNaviContent] = ? AND [isShowReview] = ? AND [TitleColor] = ? AND [titleBorder] = ? AND [TitleItalic] = ? AND [IsURL] = ? AND [URLAddress] = ? AND [Content] = ? AND [isPicNews] = ? AND [NewsPicFile] = ? AND [NewsSmallPicFile] = ? AND [PicborderCss] = ? AND [Templet] = ? AND [isPop] = ? AND [Source] = ? AND [Editor] = ? AND [Keywords] = ? AND [Author] = ? AND [Hits] = ? AND [SaveNewsPath] = ? AND [FileName] = ? AND [FileExtName] = ? AND [NewsProperty] = ? AND [TodayNewsPic] = ? AND [isLock] = ? AND [isRecyle] = ? AND [addtime] = ? AND [isdraft] = ? AND [IsAdPic] = ? AND [AdPicWH] = ? AND [AdPicLink] = ? AND [AdPicAdress] = ?" 
            InsertCommand="INSERT INTO [News] ([ID], [NewsID], [PopId], [ClassID], [SpecialEName], [NewsTitle], [CurtTitle], [NewsNaviContent], [isShowReview], [TitleColor], [titleBorder], [TitleItalic], [IsURL], [URLAddress], [Content], [isPicNews], [NewsPicFile], [NewsSmallPicFile], [PicborderCss], [Templet], [isPop], [Source], [Editor], [Keywords], [Author], [Hits], [SaveNewsPath], [FileName], [FileExtName], [NewsProperty], [TodayNewsPic], [isLock], [isRecyle], [addtime], [isdraft], [IsAdPic], [AdPicWH], [AdPicLink], [AdPicAdress]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" 
            OldValuesParameterFormatString="original_{0}" 
            SelectCommand="SELECT * FROM [News]" 
            UpdateCommand="UPDATE [News] SET [NewsID] = ?, [PopId] = ?, [ClassID] = ?, [SpecialEName] = ?, [NewsTitle] = ?, [CurtTitle] = ?, [NewsNaviContent] = ?, [isShowReview] = ?, [TitleColor] = ?, [titleBorder] = ?, [TitleItalic] = ?, [IsURL] = ?, [URLAddress] = ?, [Content] = ?, [isPicNews] = ?, [NewsPicFile] = ?, [NewsSmallPicFile] = ?, [PicborderCss] = ?, [Templet] = ?, [isPop] = ?, [Source] = ?, [Editor] = ?, [Keywords] = ?, [Author] = ?, [Hits] = ?, [SaveNewsPath] = ?, [FileName] = ?, [FileExtName] = ?, [NewsProperty] = ?, [TodayNewsPic] = ?, [isLock] = ?, [isRecyle] = ?, [addtime] = ?, [isdraft] = ?, [IsAdPic] = ?, [AdPicWH] = ?, [AdPicLink] = ?, [AdPicAdress] = ? WHERE [ID] = ? AND [NewsID] = ? AND [PopId] = ? AND [ClassID] = ? AND [SpecialEName] = ? AND [NewsTitle] = ? AND [CurtTitle] = ? AND [NewsNaviContent] = ? AND [isShowReview] = ? AND [TitleColor] = ? AND [titleBorder] = ? AND [TitleItalic] = ? AND [IsURL] = ? AND [URLAddress] = ? AND [Content] = ? AND [isPicNews] = ? AND [NewsPicFile] = ? AND [NewsSmallPicFile] = ? AND [PicborderCss] = ? AND [Templet] = ? AND [isPop] = ? AND [Source] = ? AND [Editor] = ? AND [Keywords] = ? AND [Author] = ? AND [Hits] = ? AND [SaveNewsPath] = ? AND [FileName] = ? AND [FileExtName] = ? AND [NewsProperty] = ? AND [TodayNewsPic] = ? AND [isLock] = ? AND [isRecyle] = ? AND [addtime] = ? AND [isdraft] = ? AND [IsAdPic] = ? AND [AdPicWH] = ? AND [AdPicLink] = ? AND [AdPicAdress] = ?">
            <DeleteParameters>
                <asp:parameter Name="original_ID" Type="Int32" />
                <asp:parameter Name="original_NewsID" Type="String" />
                <asp:parameter Name="original_PopId" Type="Int32" />
                <asp:parameter Name="original_ClassID" Type="String" />
                <asp:parameter Name="original_SpecialEName" Type="String" />
                <asp:parameter Name="original_NewsTitle" Type="String" />
                <asp:parameter Name="original_CurtTitle" Type="String" />
                <asp:parameter Name="original_NewsNaviContent" Type="String" />
                <asp:parameter Name="original_isShowReview" Type="Byte" />
                <asp:parameter Name="original_TitleColor" Type="String" />
                <asp:parameter Name="original_titleBorder" Type="Byte" />
                <asp:parameter Name="original_TitleItalic" Type="Byte" />
                <asp:parameter Name="original_IsURL" Type="Byte" />
                <asp:parameter Name="original_URLAddress" Type="String" />
                <asp:parameter Name="original_Content" Type="String" />
                <asp:parameter Name="original_isPicNews" Type="Byte" />
                <asp:parameter Name="original_NewsPicFile" Type="String" />
                <asp:parameter Name="original_NewsSmallPicFile" Type="String" />
                <asp:parameter Name="original_PicborderCss" Type="Byte" />
                <asp:parameter Name="original_Templet" Type="String" />
                <asp:parameter Name="original_isPop" Type="Int32" />
                <asp:parameter Name="original_Source" Type="String" />
                <asp:parameter Name="original_Editor" Type="String" />
                <asp:parameter Name="original_Keywords" Type="String" />
                <asp:parameter Name="original_Author" Type="String" />
                <asp:parameter Name="original_Hits" Type="Int32" />
                <asp:parameter Name="original_SaveNewsPath" Type="String" />
                <asp:parameter Name="original_FileName" Type="String" />
                <asp:parameter Name="original_FileExtName" Type="String" />
                <asp:parameter Name="original_NewsProperty" Type="String" />
                <asp:parameter Name="original_TodayNewsPic" Type="Byte" />
                <asp:parameter Name="original_isLock" Type="Byte" />
                <asp:parameter Name="original_isRecyle" Type="Byte" />
                <asp:parameter Name="original_addtime" Type="DateTime" />
                <asp:parameter Name="original_isdraft" Type="Byte" />
                <asp:parameter Name="original_IsAdPic" Type="String" />
                <asp:parameter Name="original_AdPicWH" Type="String" />
                <asp:parameter Name="original_AdPicLink" Type="String" />
                <asp:parameter Name="original_AdPicAdress" Type="String" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:parameter Name="NewsID" Type="String" />
                <asp:parameter Name="PopId" Type="Int32" />
                <asp:parameter Name="ClassID" Type="String" />
                <asp:parameter Name="SpecialEName" Type="String" />
                <asp:parameter Name="NewsTitle" Type="String" />
                <asp:parameter Name="CurtTitle" Type="String" />
                <asp:parameter Name="NewsNaviContent" Type="String" />
                <asp:parameter Name="isShowReview" Type="Byte" />
                <asp:parameter Name="TitleColor" Type="String" />
                <asp:parameter Name="titleBorder" Type="Byte" />
                <asp:parameter Name="TitleItalic" Type="Byte" />
                <asp:parameter Name="IsURL" Type="Byte" />
                <asp:parameter Name="URLAddress" Type="String" />
                <asp:parameter Name="Content" Type="String" />
                <asp:parameter Name="isPicNews" Type="Byte" />
                <asp:parameter Name="NewsPicFile" Type="String" />
                <asp:parameter Name="NewsSmallPicFile" Type="String" />
                <asp:parameter Name="PicborderCss" Type="Byte" />
                <asp:parameter Name="Templet" Type="String" />
                <asp:parameter Name="isPop" Type="Int32" />
                <asp:parameter Name="Source" Type="String" />
                <asp:parameter Name="Editor" Type="String" />
                <asp:parameter Name="Keywords" Type="String" />
                <asp:parameter Name="Author" Type="String" />
                <asp:parameter Name="Hits" Type="Int32" />
                <asp:parameter Name="SaveNewsPath" Type="String" />
                <asp:parameter Name="FileName" Type="String" />
                <asp:parameter Name="FileExtName" Type="String" />
                <asp:parameter Name="NewsProperty" Type="String" />
                <asp:parameter Name="TodayNewsPic" Type="Byte" />
                <asp:parameter Name="isLock" Type="Byte" />
                <asp:parameter Name="isRecyle" Type="Byte" />
                <asp:parameter Name="addtime" Type="DateTime" />
                <asp:parameter Name="isdraft" Type="Byte" />
                <asp:parameter Name="IsAdPic" Type="String" />
                <asp:parameter Name="AdPicWH" Type="String" />
                <asp:parameter Name="AdPicLink" Type="String" />
                <asp:parameter Name="AdPicAdress" Type="String" />
                <asp:parameter Name="original_ID" Type="Int32" />
                <asp:parameter Name="original_NewsID" Type="String" />
                <asp:parameter Name="original_PopId" Type="Int32" />
                <asp:parameter Name="original_ClassID" Type="String" />
                <asp:parameter Name="original_SpecialEName" Type="String" />
                <asp:parameter Name="original_NewsTitle" Type="String" />
                <asp:parameter Name="original_CurtTitle" Type="String" />
                <asp:parameter Name="original_NewsNaviContent" Type="String" />
                <asp:parameter Name="original_isShowReview" Type="Byte" />
                <asp:parameter Name="original_TitleColor" Type="String" />
                <asp:parameter Name="original_titleBorder" Type="Byte" />
                <asp:parameter Name="original_TitleItalic" Type="Byte" />
                <asp:parameter Name="original_IsURL" Type="Byte" />
                <asp:parameter Name="original_URLAddress" Type="String" />
                <asp:parameter Name="original_Content" Type="String" />
                <asp:parameter Name="original_isPicNews" Type="Byte" />
                <asp:parameter Name="original_NewsPicFile" Type="String" />
                <asp:parameter Name="original_NewsSmallPicFile" Type="String" />
                <asp:parameter Name="original_PicborderCss" Type="Byte" />
                <asp:parameter Name="original_Templet" Type="String" />
                <asp:parameter Name="original_isPop" Type="Int32" />
                <asp:parameter Name="original_Source" Type="String" />
                <asp:parameter Name="original_Editor" Type="String" />
                <asp:parameter Name="original_Keywords" Type="String" />
                <asp:parameter Name="original_Author" Type="String" />
                <asp:parameter Name="original_Hits" Type="Int32" />
                <asp:parameter Name="original_SaveNewsPath" Type="String" />
                <asp:parameter Name="original_FileName" Type="String" />
                <asp:parameter Name="original_FileExtName" Type="String" />
                <asp:parameter Name="original_NewsProperty" Type="String" />
                <asp:parameter Name="original_TodayNewsPic" Type="Byte" />
                <asp:parameter Name="original_isLock" Type="Byte" />
                <asp:parameter Name="original_isRecyle" Type="Byte" />
                <asp:parameter Name="original_addtime" Type="DateTime" />
                <asp:parameter Name="original_isdraft" Type="Byte" />
                <asp:parameter Name="original_IsAdPic" Type="String" />
                <asp:parameter Name="original_AdPicWH" Type="String" />
                <asp:parameter Name="original_AdPicLink" Type="String" />
                <asp:parameter Name="original_AdPicAdress" Type="String" />
            </UpdateParameters>
            <InsertParameters>
                <asp:parameter Name="ID" Type="Int32" />
                <asp:parameter Name="NewsID" Type="String" />
                <asp:parameter Name="PopId" Type="Int32" />
                <asp:parameter Name="ClassID" Type="String" />
                <asp:parameter Name="SpecialEName" Type="String" />
                <asp:parameter Name="NewsTitle" Type="String" />
                <asp:parameter Name="CurtTitle" Type="String" />
                <asp:parameter Name="NewsNaviContent" Type="String" />
                <asp:parameter Name="isShowReview" Type="Byte" />
                <asp:parameter Name="TitleColor" Type="String" />
                <asp:parameter Name="titleBorder" Type="Byte" />
                <asp:parameter Name="TitleItalic" Type="Byte" />
                <asp:parameter Name="IsURL" Type="Byte" />
                <asp:parameter Name="URLAddress" Type="String" />
                <asp:parameter Name="Content" Type="String" />
                <asp:parameter Name="isPicNews" Type="Byte" />
                <asp:parameter Name="NewsPicFile" Type="String" />
                <asp:parameter Name="NewsSmallPicFile" Type="String" />
                <asp:parameter Name="PicborderCss" Type="Byte" />
                <asp:parameter Name="Templet" Type="String" />
                <asp:parameter Name="isPop" Type="Int32" />
                <asp:parameter Name="Source" Type="String" />
                <asp:parameter Name="Editor" Type="String" />
                <asp:parameter Name="Keywords" Type="String" />
                <asp:parameter Name="Author" Type="String" />
                <asp:parameter Name="Hits" Type="Int32" />
                <asp:parameter Name="SaveNewsPath" Type="String" />
                <asp:parameter Name="FileName" Type="String" />
                <asp:parameter Name="FileExtName" Type="String" />
                <asp:parameter Name="NewsProperty" Type="String" />
                <asp:parameter Name="TodayNewsPic" Type="Byte" />
                <asp:parameter Name="isLock" Type="Byte" />
                <asp:parameter Name="isRecyle" Type="Byte" />
                <asp:parameter Name="addtime" Type="DateTime" />
                <asp:parameter Name="isdraft" Type="Byte" />
                <asp:parameter Name="IsAdPic" Type="String" />
                <asp:parameter Name="AdPicWH" Type="String" />
                <asp:parameter Name="AdPicLink" Type="String" />
                <asp:parameter Name="AdPicAdress" Type="String" />
            </InsertParameters>
        </asp:AccessDataSource>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="ID" 
            DataSourceID="AccessDataSource1" ForeColor="#333333" GridLines="None">
            <footerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
            <rowstyle backcolor="#EFF3FB" />
            <Columns>
                <asp:commandfield ShowSelectButton="True"></asp:commandfield>
                <asp:boundfield DataField="ID" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="ID"></asp:boundfield>
                <asp:boundfield DataField="NewsID" HeaderText="NewsID" SortExpression="NewsID">
                </asp:boundfield>
                <asp:boundfield DataField="PopId" HeaderText="PopId" SortExpression="PopId">
                </asp:boundfield>
                <asp:boundfield DataField="ClassID" HeaderText="ClassID" 
                    SortExpression="ClassID"></asp:boundfield>
                <asp:boundfield DataField="SpecialEName" HeaderText="SpecialEName" 
                    SortExpression="SpecialEName"></asp:boundfield>
                <asp:boundfield DataField="NewsTitle" HeaderText="NewsTitle" 
                    SortExpression="NewsTitle"></asp:boundfield>
            </Columns>
            <pagerstyle backcolor="#2461BF" forecolor="White" horizontalalign="Center" />
            <selectedrowstyle backcolor="#D1DDF1" font-bold="True" forecolor="#333333" />
            <headerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
            <editrowstyle backcolor="#2461BF" />
            <alternatingrowstyle backcolor="White" />
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>
